cmake_minimum_required(VERSION 3.28)
project(cproject C)

set(CMAKE_C_STANDARD 99)

add_executable(cproject main.c
        chapter01/01_Hello.c)

add_executable(01_Hello chapter01/01_Hello.c
        chapter01/02_guifan.c
        chapter01/LloveC.c
        chapter02/01_variable.c
        chapter02/02_int_test.c
        chapter02/03_float_test.c
        chapter02/04_char_test.c
        chapter02/05_bool_test.c
        chapter02/06_tower_test.c
        chapter02/07_chuanhua.c
        chapter02/08_const.c
        chapter02/09_enum.c
        chapter02/10_scanner.c
        chapter02/11_jinzhi.c
        chapter03/01_yunsuan.c
        chapter03/02_exercise.c
        chapter03/03_fuzhi.c
        chapter03/04_bijiao.c
        chapter03/05_wei.c
        chapter03/06_if.c
        chapter03/07_sizeof.c
        chapter03/08_shun.c
        chapter03/09_fenzhi.c
        chapter03/10_many_fenzhi.c
        chapter03/11_jiefangcheng.c
        chapter03/12_if.c
        chapter03/13_if.c
)
add_executable(main main.c)
add_executable(02_guifan chapter01/02_guifan.c)
add_executable(LloveC chapter01/LloveC.c)
add_executable(01_variable chapter02/01_variable.c)
add_executable(02_int_test chapter02/02_int_test.c)
add_executable(03_float_test chapter02/03_float_test.c)

add_executable(04_char_test chapter02/04_char_test.c)
add_executable(05_bool_test chapter02/05_bool_test.c)
add_executable(06_tower_test chapter02/06_tower_test.c)
add_executable(07_chuanhua chapter02/07_chuanhua.c)
add_executable(08_const chapter02/08_const.c)
add_executable(09_enum chapter02/09_enum.c)
add_executable(10_scanner chapter02/10_scanner.c)
add_executable(11_jinzhi chapter02/11_jinzhi.c)
add_executable(01_yunsuan chapter03/01_yunsuan.c)
add_executable(02_exercise chapter03/02_exercise.c)
add_executable(03_fuzhi chapter03/03_fuzhi.c)
add_executable(04_bijiao chapter03/04_bijiao.c)
add_executable(05_wei chapter03/05_wei.c)
add_executable(06_if chapter03/06_if.c)
add_executable(07_sizeof chapter03/07_sizeof.c)
add_executable(08_shun chapter03/08_shun.c)
add_executable(09_fenzhi chapter03/09_fenzhi.c)
add_executable(10_many_fenzhi chapter03/10_many_fenzhi.c)
add_executable(11_jiefangcheng chapter03/11_jiefangcheng.c)
add_executable(12_if chapter03/12_if.c)
add_executable(13_if chapter03/13_if.c)